import { FormOption } from '@/types/form-common';

export function getOptionLabel(options: FormOption<any>[], value: any): string {
  const option = options.find(opt => opt.value === value);
  if (option) {
    return option.label;
  }
  return '';
}
